package 数组;

public class 二维数组查找 {
    public boolean Find(int target ,int [][]array){
        int row = array.length - 1; //行
        int column = 0; //列
        while (row > 0 && column < array[0].length){
            if (array[row][column] > target){
                row--;
            }
            if (array[row][column] < target){
                column++;
            }else {
                return true;
            }
        }
        return false;
    }
}
